#include<stdio.h>
int main()
{
	unsigned short a;
	scanf("%p",&a);
    a=a<<3;
    printf("%d\n",a);
	return 0;	
}
